import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '@/views/Home'
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home,
    // component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  },
  {
    path: '/sellerpage',
    name: 'sellerpage',
    component: () =>
      import(/* webpackChunkName: "sellerPage" */ '@/views/SellerPage.vue'),
  },
  {
    path: '/trendpage',
    name: 'trendpage',
    component: () =>
      import(/* webpackChunkName: "sellerPage" */ '@/views/TrendPage.vue'),
  },
  {
    path: '/mappage',
    name: 'mappage',
    component: () =>
      import(/* webpackChunkName: "sellerPage" */ '@/views/MapPage.vue'),
  },
  {
    path: '/rank',
    name: 'rank',
    component: () =>
      import(/* webpackChunkName: "sellerPage" */ '@/views/RankPage.vue'),
  },
  {
    path: '/hot',
    name: 'hot',
    component: () =>
      import(/* webpackChunkName: "sellerPage" */ '@/views/HotPage.vue'),
  },
  {
    path: '/stock',
    name: 'stock',
    component: () =>
      import(/* webpackChunkName: "sellerPage" */ '@/views/StockPage.vue'),
  },
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes,
})

export default router
